using System;
using System.ComponentModel.DataAnnotations;
using Localization;
using SinBiota.Model.Entities.CustomAttributes;

namespace SinBiota.Model.Entities
{
    [LocalizedName("Method", NameResourceType = typeof(Strings))]
    public class Method : BaseEntity
    {
        [LocalizedName("Name", NameResourceType = typeof(Strings))]
        [Required(ErrorMessageResourceType = typeof(Messages), ErrorMessageResourceName = "FieldCannotBeEmpty")]
        public virtual string Name { get; set; }

        [LocalizedName("Description", NameResourceType = typeof(Strings))]
        [DataType(DataType.MultilineText)]
        public virtual string Description { get; set; }
    }
}
